import request from '@/utils/request'

// 获取数据渲染页面
export function reqGetTrademarkList(page, limit) {
  return request({
    url: `/admin/product/baseTrademark/${page}/${limit}`,
    method: 'get'
  })
}

// 添加一条数据
export function reqAddOneTrademark(tmForm) {
  return request({
    url: `/admin/product/baseTrademark/save`,
    method: 'post',
    data: tmForm
  })
}

// 删除一条数据
export function reqDeleteTrademarkData(id) {
  return request({
    url: `/admin/product/baseTrademark/remove/${id}`,
    method: 'delete'
  })
}

// 获取待更新数据
export function reqGetOneTrademark(id) {
  return request({
    url: `/admin/product/baseTrademark/get/${id}`,
    method: 'get'
  })
}

// 更新当前商品
export function reqUpdateOneTrademark(tmForm) {
  return request({
    url: `/admin/product/baseTrademark/update`,
    method: 'put',
    data: tmForm
  })
}
